<?php

namespace Lettral\LetterBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class AdresseEnt {
    
    /**
    * @ORM\Id
    * @ORM\Column(type="integer")
    * @ORM\generatedValue(strategy="AUTO")
    */
    protected $numAdresse;
    
    /**
    * @ORM\Column(type="string",length="100")
    * @Assert\NotBlank()
    */ 
    protected $nom;
    
    /**
     * @ORM\Column(type="string",length="100",nullable="true")
     */
    protected $compNom1;
    
    /**
     * @ORM\Column(type="string",length="100",nullable="true")
     */
    protected $compNom2;
    
    /**
     * @ORM\Column(type="string",length="100",nullable="true")
     */
    protected $adresse;
    
    /**
     * @ORM\Column(type="string",length="15",nullable="true")
     */
    protected $cp;
    
    /**
     * @ORM\Column(type="string",length="50",nullable="true")
     */
    protected $ville;
    
    public function getNumAdresse() {
        return $this->numAdresse;
    }
    
    public function setNumAdresse($numAdresse) {
        $this->numAdresse = $numAdresse;
        return $this;
    }
    
    public function getNom() {
        return $this->nom;
    }
    
    public function setNom($nom) {
        $this->nom = $nom;
        return $this;
    }
    
    public function getCompNom1() {
        return $this->compNom1;
    }
    
    public function setCompNom1($compNom1) {
        $this->compNom1 = $compNom1;
        return $this;
    }
    
    public function getCompNom2() {
        return $this->compNom2;
    }
    
    public function setCompNom2($compNom2) {
        $this->compNom2 = $compNom2;
        return $this;
    }
    
    public function getAdresse() {
        return $this->adresse;
    }
    
    public function setAdresse($adresse) {
        $this->adresse = $adresse;
        return $this;
    }
    
    public function getCp() {
        return $this->cp;
    }
    
    public function setCp($cp) {
        $this->cp = $cp;
        return $this;
    }
    
    public function getVille() {
        return $this->ville;
    }
    
    public function setVille($ville) {
        $this->ville = $ville;
        return $this;
    }
}
